POV-Ray : Newsgroups : povray.unofficial.patches : Trouble with particle_system : Trouble with particle_system Server Time
2 Sep 2024 02:18:04 EDT (-0400)
  Trouble with particle_system  
From: Tony[B]
Date: 16 Jul 2000 14:25:13
Message: <3971fe09@news.povray.org>
This particle_system thing has memory problems, I think. Now, I'm not a
programmer, but it seems to me that as time goes by while I'm doing
animations something piles up somewhere and messes things up. If I stop it,
and restart it, things work fine. This doesn't seem right. Here's the code.
The problem occured on frame 16 of 99; paricles flying all over the place.
When I continued from 16, it worked fine.

// Persistence of Vision Ray Tracer Scene Description File
#version unofficial MegaPov 0.5;
#include "colors.inc"
//Start of particle pattern demo file
camera {
 location <-3, 2.5, -8>*3
 angle 35
 look_at < 0, 2, 0>
}
light_source {< 20, 75, 50>*5 color White*0.5}
light_source {< 0, 2.5, -8>*5 color White*0.3}
light_source {< -75, 150,-50> color White}
#declare Floor =
union {
 box {< -100, 0,-100>, < 100, 0, 100>
  texture {
   pigment {color rgb < 1, 1, 0.8>}
//   pigment {checker color Black transmit 0.5, color White transmit 0.5}
  }
 }
 box {<-2, 0,-2>, < 2, 4, 2>
  texture {
   pigment {color Green}
  }
 }
// sphere {<-1.5, 3.5, 1>, 2
//  texture {
//   pigment {color Blue}
//  }
// }
}
object {Floor}
particle_system {
 wind < 0, 0, 0>
 gravity < 0,-0.00981, 0>
 iterations 1000+int(400*clock)*10
 time 500*clock
// time 40*clock + 30
 jitter 0
 drag 0
 environment object {Floor}
 threshold 1.5

 particle_emitter {
  location < 0, 4.1, 0>
//  object {sphere {<-5.5, 1, 0>, 1}}
  radius 0.3
  lifespan 10000
  rate 100
  elasticity 0.5
  direction < 0, .2, 0>
//  direction < 1, 1, 0>
  angle 12, 16
 }
 texture {
  pigment {color rgb < 0.7, 0.75, 1>}
 }
}


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.